package cn.silver.module.configuration.controller;

import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.configuration.bean.SerialBean;
import cn.silver.module.configuration.domain.SysSerial;
import cn.silver.module.configuration.param.SerialParam;
import cn.silver.module.configuration.service.ISysSerialService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "配置管理-序列号配置")
@RequestMapping("/config/serial")
public class SysSerialController extends BusController<ISysSerialService, SysSerial, SerialParam, SerialBean> {

    @Override
    @Resource
    public void setBaseService(ISysSerialService baseService) {
        super.setBaseService(baseService);
        this.setCode("config_serial");
        this.setPermission("config:serial");
        this.setTitle("配置管理-序列号配置");
    }
}
